﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using loginSQL.Util;

namespace loginSQL.Window.CollectionEdit
{
    public partial class NewBook : Form
    {
        public String name;
        public String filename;
        public DialogResult result;

        public NewBook()
        {
            InitializeComponent();
            result = System.Windows.Forms.DialogResult.None;
            name = null;
        }

        private void btn_ok_Click(object sender, EventArgs e)
        {
            result = System.Windows.Forms.DialogResult.OK;
            name = teks_nama.Text;
            filename = teks_filename.Text;
        }

        private void btn_cancel_Click(object sender, EventArgs e)
        {
        }

        private void button1_Click(object sender, EventArgs e)
        {
            SaveFileDialog sfd = new SaveFileDialog();
            if (sfd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                teks_filename.Text = sfd.FileName;
            }
        }
    }
}
